<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../common/taglib.jsp"%>
<jsp:include page="../common/header.jsp"></jsp:include>
<style type="text/css">
	.rol_left{
		float:left;
		width: 60%;
	}
	.rol_right{
		float:left;
		width: 30%;
	}
</style>
	<jsp:include page="../common/common_user.jsp"></jsp:include>
	<h2>标题管理 </h2>
	<p><a href="javascript:;">添加标题</a></p>
	<div class="rol_left">
		<c:forEach items="${topics }" var="topic">
			<p data-tid="${topic.tid }">${topic.tname } —— <a href="javascript:;" class="topic_upd">修改</a> 
			<a href="javascript:;" class="topic_del">删除</a></p>
		</c:forEach>
	</div>
	<div class="rol_right">
		<form method="post" id="topicForm">
			标题名称:<input type="text" name="tname" value="" id="tname"> 
			<input name="tid" value="" type="hidden" id="tid"> 
			<input name="opt" value="add" type="hidden" id="opt"> 
			<br><br>
			<input type="submit" value="提交">
		</form>
	</div>
	<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath }/js/topic.js"></script>
</body>
</html>